{template header}

<script type="text/javascript" src="{WEBURLPATH}/javascript/yetii.js"></script>

<!--{if $webglobal[mode]=='settings'}-->
	<div class="demolayout" id="demo">
		<ul class="demolayout" id="demo-nav">
			<li class="activeli"><a href="#tab1" class="active">站点信息</a></li>
			<li class=""><a href="#tab2" class="">邮件设置</a></li>
			<li class=""><a href="#tab3" class="">短信接口设置</a></li>
			<li class=""><a href="#tab4" class="">积分设置</a></li>
			<li class=""><a href="#tab5" class="">其他</a></li>
		</ul>
		<form name="addform" method="post" action="{ADMIN_WEBURLPATH}/index.php?mode=settings&check">
		<div class="tabs-container">
			<div id="tab1" class="tab" style="display: block;">
				<table class="datatable" cellspacing="1">
					<tbody>
						<tr>
							<th>站点名称</th>
							<td><input type="text" name="settings[sitename]" size="40" value="{if isset($webglobal[file_settings][sitename])}{$webglobal[file_settings][sitename]}{/if}" /></td>
						</tr>
						<tr>
							<th>站点URL</th>
							<td><input type="text" name="settings[siteurl]" size="40" value="{if isset($webglobal[file_settings][siteurl])}{$webglobal[file_settings][siteurl]}{/if}" /></td>
						</tr>
						<tr>
							<th>站点关闭</th>
							<td>
								<input type="radio" value="1" name="settings[siteclosed]"{if isset($webglobal[file_settings][siteclosed]) && $webglobal[file_settings][siteclosed] == 1} checked{/if} class="radio"> 是
								<input type="radio" value="0" name="settings[siteclosed]"{if isset($webglobal[file_settings][siteclosed]) && $webglobal[file_settings][siteclosed] == 0} checked{/if} class="radio"> 否
							</td>
						</tr>
						<tr>
							<th>站点关闭原因</th>
							<td>
								<textarea cols="50" id="settings[closedreason]" name="settings[closedreason]" rows="6">{if isset($webglobal[file_settings][closedreason])}{$webglobal[file_settings][closedreason]}{/if}</textarea>
							</td>
						</tr>
					</tbody>
				</table>
			</div>

			<div id="tab2" class="tab" style="display: none;">
				<table class="datatable" cellspacing="1">
					<tbody>
						<tr>
							<th>SMTP 服务器<div>设置 SMTP 服务器的地址</div></th>
							<td><input type="text" name="settings[mail][server]" size="40" value="{if isset($webglobal[file_settings][mail][server])}{$webglobal[file_settings][mail][server]}{/if}" /></td>
						</tr>
						<tr>
							<th>SMTP 端口<div>设置 SMTP 服务器的端口，一般为 25</div></th>
							<td><input type="text" name="settings[mail][port]" size="40" value="{if isset($webglobal[file_settings][mail][port])}{$webglobal[file_settings][mail][port]}{else}25{/if}" /></td>
						</tr>
						<tr>
							<th>SMTP 服务器要求身份验证</th>
							<td>
								<input type="radio" value="1" name="settings[mail][auth]"{if isset($webglobal[file_settings][mail][auth]) && $webglobal[file_settings][mail][auth] == 1} checked{/if} class="radio"> 是
								<input type="radio" value="0" name="settings[mail][auth]"{if isset($webglobal[file_settings][mail][auth]) && $webglobal[file_settings][mail][auth] == 0} checked{/if} class="radio"> 否
							</td>
						</tr>
						<!-- <tr>
							<th>SMTP 服务器是否启用SSL</th>
							<td>
								<input type="radio" value="1" name="settings[mail][ssl]"{if isset($webglobal[file_settings][mail][ssl]) && $webglobal[file_settings][mail][ssl] == 1} checked{/if} class="radio"> 是
								<input type="radio" value="0" name="settings[mail][ssl]"{if isset($webglobal[file_settings][mail][ssl]) && $webglobal[file_settings][mail][ssl] == 0} checked{/if} class="radio"> 否
							</td>
						</tr> -->
						<tr>
							<th>HELO域设置</th>
							<td><input type="text" name="settings[mail][helo]" size="40" value="{if isset($webglobal[file_settings][mail][helo])}{$webglobal[file_settings][mail][helo]}{/if}" /></td>
						</tr>
						<tr>
							<th>发件人邮箱地址</th>
							<td><input type="text" name="settings[mail][from]" size="40" value="{if isset($webglobal[file_settings][mail][from])}{$webglobal[file_settings][mail][from]}{/if}" /></td>
						</tr>
						<tr>
							<th>发件人名称</th>
							<td><input type="text" name="settings[mail][from_name]" size="40" value="{if isset($webglobal[file_settings][mail][from_name])}{$webglobal[file_settings][mail][from_name]}{/if}" /></td>
						</tr>
						<tr>
							<th>SMTP 身份验证用户名</th>
							<td><input type="text" name="settings[mail][auth_username]" size="40" value="{if isset($webglobal[file_settings][mail][auth_username])}{$webglobal[file_settings][mail][auth_username]}{/if}" /></td>
						</tr>
						<tr>
							<th>SMTP 身份验证密码</th>
							<td><input type="password" name="settings[mail][auth_password]" size="40" value="{if isset($webglobal[file_settings][mail][auth_password])}{$webglobal[file_settings][mail][auth_password]}{/if}" /></td>
						</tr>
						<!-- <tr>
							<th>收件人地址中包含用户名:</th>
							<td>
								<input type="radio" value="1" name="settings[mail][mailusername]"{if isset($webglobal[file_settings][mail][mailusername]) && $webglobal[file_settings][mail][mailusername] == 1} checked{/if} class="radio"> 是
								<input type="radio" value="0" name="settings[mail][mailusername]"{if isset($webglobal[file_settings][mail][mailusername]) && $webglobal[file_settings][mail][mailusername] == 0} checked{/if} class="radio"> 否
							</td>
						</tr> -->
					</tbody>
				</table>
			</div>	
			<div id="tab3" class="tab" style="display: none;">
				
			</div>
			<div id="tab4" class="tab" style="display: none;">
				<table class="datatable" cellspacing="1">
					<tbody>
						<tr>
							<th>用户注册增加积分</th>
							<td><input type="text" name="settings[extcredits][user_register]" size="40" value="{if isset($webglobal[file_settings][extcredits][user_register])}{$webglobal[file_settings][extcredits][user_register]}{/if}" /></td>
						</tr>
						<tr>
							<th>用户评论增加积分</th>
							<td><input type="text" name="settings[extcredits][user_comment]" size="40" value="{if isset($webglobal[file_settings][extcredits][user_comment])}{$webglobal[file_settings][extcredits][user_comment]}{/if}" /></td>
						</tr>
					</tbody>
				</table>
			</div>
			<div id="tab5" class="tab" style="display: none;">
				<table class="datatable" cellspacing="1">
					<tbody>
						<tr>
							<th>用户兴趣选项设置<div>每一行数据将作为一个选项</div></th>
							<td>
								<textarea cols="50" id="settings[user_interests]" name="settings[user_interests]" rows="6">{if isset($webglobal[file_settings][user_interests])}{$webglobal[file_settings][user_interests]}{/if}</textarea>
							</td>
						</tr>
						<tr>
							<th>站点公告(资讯分类ID)</th>
							<td><input type="text" name="settings[notice_category_id]" size="10" value="{if isset($webglobal[file_settings][notice_category_id])}{$webglobal[file_settings][notice_category_id]}{/if}" /></td>
						</tr>
						<tr>
							<th>首页新闻显示条数</th>
							<td><input type="text" name="settings[show_index_limit]" size="10" value="{if isset($webglobal[file_settings][show_index_limit])}{$webglobal[file_settings][show_index_limit]}{/if}" /></td>
						</tr>
						<tr>
							<th>热点新闻显示条数</th>
							<td><input type="text" name="settings[hot_limit]" size="10" value="{if isset($webglobal[file_settings][hot_limit])}{$webglobal[file_settings][hot_limit]}{/if}" /></td>
						</tr>
						<tr>
							<th>热点优惠劵显示条数</th>
							<td><input type="text" name="settings[hot_coupon_limit]" size="10" value="{if isset($webglobal[file_settings][hot_coupon_limit])}{$webglobal[file_settings][hot_coupon_limit]}{/if}" /></td>
						</tr>
					</tbody>
				</table>
			</div>
			<table class="datatable" cellspacing="1">
				<tfoot>
					<tr><td colspan="2">
						<input type="submit" name="adminsubmit" class="submitok" value=" 确  认 " />&nbsp;&nbsp;
						<input type="reset" name="adminreset" value=" 取  消 " />
					</td></tr>
				</tfoot>
			</table>
		</div>
		</form>
	</div>
	<script type="text/javascript">
		var tabber1 = new Yetii({
			id: 'demo',
			persist: true
		});
	</script>
<!--{/if}-->

{template footer}